import redis


# 获取redis连接
def get_connect(host, port, auth):
    if auth != '':
        return redis.Redis(host=host, port=port, db=0)
    else:
        return redis.Redis(host=host, port=port, db=0, password=auth)
